// samsting : this file is auto create.

#include "Ram/2015-05-01/ListPoliciesForRoleResponse.h"

namespace aliyun { namespace Ram {

ListPoliciesForRoleResponse::ListPoliciesForRoleResponse() {
}

const string& ListPoliciesForRoleResponse::Policy::GetPolicyName(void) const {
  return PolicyName_;
}

const string& ListPoliciesForRoleResponse::Policy::GetPolicyType(void) const {
  return PolicyType_;
}

const string& ListPoliciesForRoleResponse::Policy::GetDescription(void) const {
  return Description_;
}

const string& ListPoliciesForRoleResponse::Policy::GetDefaultVersion(void) const {
  return DefaultVersion_;
}

const string& ListPoliciesForRoleResponse::Policy::GetAttachDate(void) const {
  return AttachDate_;
}

const std::vector<ListPoliciesForRoleResponse::Policy>& ListPoliciesForRoleResponse::GetPolicies(void) const {
  return Policies_;
}

const char* ListPoliciesForRoleResponse::BaseKey(void) {
  return "ListPoliciesForRoleResponse";
}

void ListPoliciesForRoleResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Policies__length = 0;
  UnmarshallerInt(Policies__length, response_map, "ListPoliciesForRoleResponse.Policies.Length");
  if(Policies__length >= 0) {
    Policies_.resize(Policies__length);
    for(int i1 = 0; i1 < Policies__length; i1++) {
      UnmarshallerString(Policies_[i1].PolicyName_, response_map, "ListPoliciesForRoleResponse.Policies["+string_ValueOfInt(i1)+"].PolicyName");
      UnmarshallerString(Policies_[i1].PolicyType_, response_map, "ListPoliciesForRoleResponse.Policies["+string_ValueOfInt(i1)+"].PolicyType");
      UnmarshallerString(Policies_[i1].Description_, response_map, "ListPoliciesForRoleResponse.Policies["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(Policies_[i1].DefaultVersion_, response_map, "ListPoliciesForRoleResponse.Policies["+string_ValueOfInt(i1)+"].DefaultVersion");
      UnmarshallerString(Policies_[i1].AttachDate_, response_map, "ListPoliciesForRoleResponse.Policies["+string_ValueOfInt(i1)+"].AttachDate");
    } // for(int i1 = 0; i1 < Policies__length; i1++) {
  } // if(Policies__length >= 0) {

}


} } // namespace aliyun { namespace Ram {

// end of file 
